{% extends 'dash/index.html' %}
{% block 'content_show' %}
<!-- block 模块 -->
<!-- title -->
<div class="container-fluid am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
            <div class="page-header-heading">
            	<span class="am-icon-home page-header-heading-icon"></span> 
            	订单修改 
            	<small>Order edit</small>
            </div>
        </div>
    </div>
</div>
<!-- END title -->

<!-- 修改订单信息 -->
<div class="row">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <div class="widget-body am-fr">
            	<!-- 提交用户信息表单 -->
                <form action="{% url 'dash_edit_order' %}" class="am-form tpl-form-line-form" method="post" enctype="multipart/form-data">
                	{% csrf_token %}

                    <!-- 订单id -->
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">订单id
                            <span class="tpl-form-line-small-title">:</span>
                        </label>
                        <div class="am-u-sm-9">
                            <input disabled value="{{ order_info.id }}" name="id" type="text" class="tpl-form-input">
                        </div>
                    </div>
                    <!-- END订单id -->

                	<!-- 收货人 -->
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">收货人
                        	<span class="tpl-form-line-small-title">:</span>
                        </label>
                        <div class="am-u-sm-9">
                            <input value="{{ order_info.linkman }}" name="linkman" type="text" class="tpl-form-input">
                        </div>
                    </div>
                    <!-- END收货人 -->
 
                    <!-- 收货地址 -->
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">收货地址 
                        	<span class="tpl-form-line-small-title">:</span>
                        </label>
                        <div class="am-u-sm-9">
                            <input value="{{ order_info.address }}" name="address" type="text" class="tpl-form-input">
                        </div>
                    </div>
                    <!-- END收货地址 -->

                    <!-- 邮编 -->
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">邮编 
                        	<span class="tpl-form-line-small-title">:</span>
                        </label>
                        <div class="am-u-sm-9">
                            <input value="{{ order_info.code }}" name="code" type="text" class="tpl-form-input">
                        </div>
                    </div>
                    <!-- END邮编 -->

                    <!-- 手机号 -->
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">手机 
                            <span class="tpl-form-line-small-title">:</span>
                        </label>
                        <div class="am-u-sm-9">
                            <input value="{{ order_info.phone }}" name="phone" type="text" class="tpl-form-input">
                        </div>
                    </div>
                    <!-- END手机号 -->

             
                    <!-- 订单状态 -->
                 	<div class="am-form-group">
                        <label for="user-phone" class="am-u-sm-3 am-form-label">订单状态
                        	<span class="tpl-form-line-small-title">:</span>
                        </label>
                        <div class="am-u-sm-9">
                        	<select name="status" data-am-selected="{searchBox: 1}" style="display:none;">
                            	<option value="0" {% if order_info.status == 0 %} selected {% endif %} >
                                    未支付
                                </option>
                            	<option value="1" {% if order_info.status == 1 %} selected {% endif %} >
                                    已发货
                                </option>
                            	<option value="2" {% if order_info.status == 2 %} selected {% endif %}>
                                    未收货
                                </option>
                                <option value="3" {% if order_info.status == 3 %} selected {% endif %}>
                                    已收货
                                </option>
                                <option value="4" {% if order_info.status == 4 %} selected {% endif %}>
                                    已取消
                                </option>
                        	</select>
                        </div>
                    </div>
                    <!-- END订单状态-->

                    <!-- hidden域隐藏携带 -->
                        <input type="hidden" name="oid" value="{{ order_info.id }}">
                    <!-- ENDhidden域隐藏携带 -->


                    <br/>
                    <!-- 提交表单按钮 -->
                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-3">
                            <button class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
                        </div>
                    </div>
                    <!-- END提交表单按钮 -->
                </form>
                <!-- END提交用户信息表单 -->
            </div>
        </div>
    </div>
</div>
<!-- END 修改订单信息 -->

<!-- END block 模块 -->
{% endblock %}